package com.mydemo.likedy.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mydemo.likedy.Utils.Result;
import com.mydemo.likedy.pojo.entity.Role;
import com.mydemo.likedy.pojo.entity.Tree;
import com.mydemo.likedy.pojo.vo.AssignRoleVO;
import com.mydemo.likedy.pojo.vo.AuthorityVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xhy
 * @since 2023-10-24
 */
public interface RoleService extends IService<Role> {

    List<Tree> tree();

    Result removeRole(String id);

    Result gavePermission(AuthorityVO authorityVO);

    Result gaveRole(AssignRoleVO assignRoleVO);

}
